package com.fanbai.score.user.bean;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.List;

/**
 * Created by Administrator on 2017/6/5.
 *
 * @author lizhipei
 * 贵人兑换商品
 */

public class ProductInfo_Bean implements Parcelable{

    /**
     * pid : 1
     * suid : 0
     * pclsid : 4
     * pimages : ["http://oormtb8qu.bkt.clouddn.com/baoxian_renbao.jpg?"]
     * pname : 中国人保
     * ppricetype : 0
     * pprice : 100000
     * pdesc : 终身年金，保费返还 -- 年金给付直到被保险人身故。被保险人身故，按所交保险费（不计利息）与现金价值的较大者给付身故保险金。
     即保即领，每年给付 -- 被保险人于犹豫期结束后的次日及每保单年生效对应日生存，按基本保险金额的10%给付年金。
     红利累计，万能增值 -- 如约定美好生活年金保险（分红型）产生的每笔年金以及现金红利作为附加品质生活年金保险（万能型）的保险费自动转入附加品质生活年金保险（万能型）的个人账户，则实现万能账户日单利月复利，保证增值。
     费用合理，随时追加 -- 从主合同及其附加合同转入的保险费初始费用的收取比例为0；您自主缴纳的保险费初始费用的收取比例为5%。
     部分领取，资金灵活 -- 每个保单年度内享受一次免费部分领取，从第二次部分领取开始，我们将按每次20元的标准从您的个人账户中扣减部分领取手续费。
     * premark : null
     * psaletype : 0
     * pstate : 0
     * pcreatetime : 2017-05-28 20:57:30
     * pupdatetime : 0000-00-00 00:00:00
     */

    private String pid;
    private String suid;
    private String pclsid;
    private String pname;
    private String ppricetype;
    private String pprice;
    private String pdesc;
    private String premark;
    private String psaletype;
    private String pstate;
    private String pcreatetime;
    private String pupdatetime;
    private List<String> pimages;

    public String getPid() {
        return pid;
    }

    public void setPid(String pid) {
        this.pid = pid;
    }

    public String getSuid() {
        return suid;
    }

    public void setSuid(String suid) {
        this.suid = suid;
    }

    public String getPclsid() {
        return pclsid;
    }

    public void setPclsid(String pclsid) {
        this.pclsid = pclsid;
    }

    public String getPname() {
        return pname;
    }

    public void setPname(String pname) {
        this.pname = pname;
    }

    public String getPpricetype() {
        return ppricetype;
    }

    public void setPpricetype(String ppricetype) {
        this.ppricetype = ppricetype;
    }

    public String getPprice() {
        return pprice;
    }

    public void setPprice(String pprice) {
        this.pprice = pprice;
    }

    public String getPdesc() {
        return pdesc;
    }

    public void setPdesc(String pdesc) {
        this.pdesc = pdesc;
    }

    public String getPremark() {
        return premark;
    }

    public void setPremark(String premark) {
        this.premark = premark;
    }

    public String getPsaletype() {
        return psaletype;
    }

    public void setPsaletype(String psaletype) {
        this.psaletype = psaletype;
    }

    public String getPstate() {
        return pstate;
    }

    public void setPstate(String pstate) {
        this.pstate = pstate;
    }

    public String getPcreatetime() {
        return pcreatetime;
    }

    public void setPcreatetime(String pcreatetime) {
        this.pcreatetime = pcreatetime;
    }

    public String getPupdatetime() {
        return pupdatetime;
    }

    public void setPupdatetime(String pupdatetime) {
        this.pupdatetime = pupdatetime;
    }

    public List<String> getPimages() {
        return pimages;
    }

    public void setPimages(List<String> pimages) {
        this.pimages = pimages;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.pid);
        dest.writeString(this.suid);
        dest.writeString(this.pclsid);
        dest.writeString(this.pname);
        dest.writeString(this.ppricetype);
        dest.writeString(this.pprice);
        dest.writeString(this.pdesc);
        dest.writeString(this.premark);
        dest.writeString(this.psaletype);
        dest.writeString(this.pstate);
        dest.writeString(this.pcreatetime);
        dest.writeString(this.pupdatetime);
        dest.writeStringList(this.pimages);
    }

    public ProductInfo_Bean() {
    }

    protected ProductInfo_Bean(Parcel in) {
        this.pid = in.readString();
        this.suid = in.readString();
        this.pclsid = in.readString();
        this.pname = in.readString();
        this.ppricetype = in.readString();
        this.pprice = in.readString();
        this.pdesc = in.readString();
        this.premark = in.readString();
        this.psaletype = in.readString();
        this.pstate = in.readString();
        this.pcreatetime = in.readString();
        this.pupdatetime = in.readString();
        this.pimages = in.createStringArrayList();
    }

    public static final Creator<ProductInfo_Bean> CREATOR = new Creator<ProductInfo_Bean>() {
        @Override
        public ProductInfo_Bean createFromParcel(Parcel source) {
            return new ProductInfo_Bean(source);
        }

        @Override
        public ProductInfo_Bean[] newArray(int size) {
            return new ProductInfo_Bean[size];
        }
    };
}
